package com.xpp.yanpicturebackend.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xpp.yanpicturebackend.model.dto.space.analyze.*;
import com.xpp.yanpicturebackend.model.entity.Space;
import com.xpp.yanpicturebackend.model.entity.User;
import com.xpp.yanpicturebackend.model.vo.analyze.*;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author WF-011
 * @description 针对表【space(空间)】的数据库操作Service
 * @createDate 2025-06-09 09:30:01
 */
@Service
public interface SpaceAnalyzeService extends IService<Space> {

    /**
     * 获取空间使用情况分析
     *
     * @param spaceAnalyzeRequest
     * @return
     */
    SpaceUsageAnalyzeResponse getSpaceUsageAnalyze(SpaceAnalyzeRequest spaceAnalyzeRequest, User loginUser);


    /**
     * 获取空间分类分析
     *
     * @param spaceCategoryAnalyzeRequest
     * @return
     */
    List<SpaceCategoryAnalyzeResponse> getSpaceCategoryAnalyze(SpaceCategoryAnalyzeRequest spaceCategoryAnalyzeRequest, User loginUser);


    /**
     * 获取空间标签分析
     *
     * @param spaceTagAnalyzeRequest
     * @param loginUser
     * @return
     */
    List<SpaceTagAnalyzeResponse> getSpaceTagAnalyze(SpaceTagAnalyzeRequest spaceTagAnalyzeRequest, User loginUser);

    /**
     * 获取空间大小分析
     *
     * @param spaceSizeAnalyzeRequest
     * @param loginUser
     * @return
     */
    List<SpaceSizeAnalyzeResponse> getSpaceSizeAnalyze(SpaceSizeAnalyzeRequest spaceSizeAnalyzeRequest, User loginUser);

    /**
     * 获取空间上传行为分析
     *
     * @param spaceUserAnalyzeRequest
     * @param loginUser
     * @return
     */
    List<SpaceUserAnalyzeResponse> getSpaceUserAnalyze(SpaceUserAnalyzeRequest spaceUserAnalyzeRequest, User loginUser);


    /**
     * 获取空间使用排行分析
     *
     * @param spaceRankAnalyzeRequest
     * @param loginUser
     * @return
     */
    List<Space> getSpaceRankAnalyze(SpaceRankAnalyzeRequest spaceRankAnalyzeRequest, User loginUser);
}
